|
require_once ("chbt-date-func.php");
$lgroet=chbt_date("IT@1@2@".$invr_taal."@".$invr_bzkr);
$curr_jaar=$lgroet[jaar];
// print_r($lgroet);
$datm_hour=$lgroet[uur];
$datm_mint=$lgroet[minuut];
$datm_tstp=$lgroet[tijdstip];
echo "";
echo "";
echo " | ";
echo " | ";
echo " | ";
echo " ";
echo " ";
echo "";
$mtsw_rslt=xtrt_xxxx($invr_cont,$invr_taal,"mtsw",8);
// print_r($mtsw_rslt);
foreach($mtsw_rslt as $resp_key => $resp_val)
{
$resp_dtls=explode("!!",$resp_key);
$resp_domn=$resp_stls[2];
$resp_lnks=$resp_dtls[3];
$resp_rchs=$resp_dtls[4];
echo " LNKS ".$resp_lnks." RCHS ".$resp_rchs;
}
?>
exit;
$sql0="SELECT * FROM conversation_log order by input asc";
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET NAMES utf8");
$tablresult = mysql_query($sql0, $link);
$tabl_num = mysql_num_rows($tablresult);
// echo " Aantallen ".$sql0." ".$tabl_num." SQL ";
if ($tabl_num == 0)
{
echo " xxx-".$sql0."SYSTEEMFOUT Please contact us via +31-6-4807 8750 or Semanta support";
// break;
}
$nl=0;
if ($tabl_num > 0)
{
echo " er zijn entries";
while ($row = mysql_fetch_assoc($tablresult))
{
$lnks=$row['input'];
$rchs=$row['response'];
// echo " LNKS ".$lnks." RCHS ".$rchs;
if ($rchs == "geen direct antwoord")
{
// echo " NDW LNKS ".$lnks." RCHS ".$rchs;
}
$conv=$row['conv_id'];
// echo " LNKS ".$lnks." RCHS ".$rchs;
if ($lrelt != $lnks)
{
$lrelt=$lnks;
if ($rchs == "geen direct antwoord")
{
$resp_rslt=xtrt_xxxx($lnks,$invr_taal,"mtsw",1);
// print_r($resp_rslt);
foreach($resp_rslt as $resp_key => $resp_val)
{
$resp_dtls=explode("!!",$resp_key);
$resp_lnks=$resp_dtls[3];
$resp_rchs=$resp_dtls[4];
if ($rrelt != $resp_lnks)
{
$sgmt_rslt=bepl_sgmt($resp_lnks);
// echo " SGMT ";
// print_r($sgmt_rslt);
foreach($sgmt_rslt as $sgmt_key => $sgmt_val)
{
// $rrelt=$sgmt_key;
$nl=$nl+1;
// echo "".$sgmt_rslt[lnks]." | ".$sgmt_rslt[rchs]." | ";
$resp_array[$sgmt_key]=$resp_array[$sgmt_key]+1;
}
}
}
}
}
}
}
echo " AANTAL ".$nl;
echo "";
ksort($resp_array);
foreach($resp_array as $sgmt_key => $sgmt_val)
{
$rrelt=$sgmt_key;
$sgmt_key=trim($sgmt_key);
$sgmt_key=strtolower($sgmt_key);
$key_itms=explode(" ",$sgmt_key);
if (count($key_itms) == 3)
{
// echo "".count($key_itms)."-".$sgmt_key." | .. | ";
$ssgmt_key=str_replace(" ","+",$sgmt_key);
echo " | ";
}
}
echo " ";
// print_r($resp_array);
?>
|